export default [
  {
    // 顶栏、主要区域
    path: '/layout',
    name: 'layout',
    redirect: { name: 'home' },
    component: () => import('@/layout/index.vue'),
    children: [
      {
        path: '/',
        name: 'home',
        component: () => import('@/views/home/index.vue'),
        meta: {
          name: 'home',
          label: '保函直通车'
        }
      },
      {
        path: '/person',
        name: 'person',
        component: () => import('@/views/person/index.vue'),
        meta: {
          name: 'person',
          label: '我的保函'
        }
      },
      {
        path: '/inspection',
        name: 'inspection',
        component: () => import('@/views/inspection/index.vue'),
        meta: {
          name: 'inspection',
          label: '保函查验'
        }
      },
      {
        path: '/message',
        name: 'message',
        component: () => import('@/views/message/index.vue'),
        meta: {
          name: 'message',
          label: '我的消息'
        }
      }
    ]
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('@/views/login/index.vue'),
    meta: {
      name: 'login',
      label: '登录',
    },
  }
]
